import tabBar from '../components/tabBar'
const routes = [
  {
    path: '/',
    components: { // 命名视图使用的配置，指明在对应名称的视图位置渲染指定组件
      default: () => import('../views/officeTable/desk.vue'),
      header: tabBar,
    },
    children: [{
      path: 'desk',
      name: 'desk',
      component: () => import('../views/officeTable/desk.vue'),
    },
    {
      path: 'consultingService',
      name: 'consultingService',
      component: () => import('../views/officeTable/consultingService.vue'),
    },
    ],
  },
  {
    path: '/officeCenter',
    components: {
      default: () => import('../views/officeCenter/index.vue'),
      header: tabBar,
    },
    children: [
      {
        path: 'applyfunt',
        name: 'applyFunt',
        component: () => import('../views/officeCenter/applyFund.vue'),
      },
      {
        path: 'applyFundDetail',
        name: 'applyFundDetail',
        component: () => import('../views/officeCenter/applyFundDetail.vue'),
      },
      {
        path: 'applyOffice',
        name: 'applyOffice',
        component: () => import('../views/officeCenter/applyOffice.vue'),
      },
      {
        path: 'applyOfficeDetail',
        name: 'applyOfficeDetail',
        component: () => import('../views/officeCenter/applyOfficeDetail.vue'),
      },
      {
        path: 'attendance',
        name: 'attendance',
        component: () => import('../views/officeCenter/attendance.vue'),
      },
    ],
  },
  {
    path: '/client',
    components: {
      default: () => import('@/views/client/index.vue'),
      header: tabBar,
    },
    children: [
      {
        path: 'clientchart',
        component: () => import('@/views/client/clientchart.vue'),

      },
      {
        path: 'clienthistory',
        component: () => import('@/views/client/clienthistory.vue'),
      },
      {
        path: 'clientquest',
        component: () => import('@/views/client/clientquest.vue'),
      },
      {
        path: 'clientinfo',
        component: () => import('@/views/client/clientinfo.vue'),
      },
    ],
  },
  {
    path: '/setting',
    components: {
      header: tabBar,
      default: () => import('../views/setting'),
    },
    children: [
      {
        path: 'picSetting',
        name: 'picSetting',
        component: () => import('../views/setting/picSetting.vue'),
      },
      {
        path: 'userManagement',
        name: 'userManagement',
        component: () => import('../views/setting/userManagement.vue'),
      },
    ],
  },
]

export default routes
